var express = require('express');
var router = express.Router();
const NoteController = require('../controllers/NoteController');
router.get('/getAllNotes', NoteController.getAllNotes);
router.get('/getSelectedNote/:nid', NoteController.getSelectedNote);
router.put('/saveNoteByNid', NoteController.saveNoteByNid);
router.post('/newNoteByUid', NoteController.newNoteByUid);
router.delete('/deleteNoteByNid/:nid', NoteController.deleteNoteByNid);
module.exports = router;